package com.zr.action;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

import freemarker.core.ParseException;

public class DateTest {  
  
    public static void main(String[] args) throws ParseException {  
        Calendar now = Calendar.getInstance();     
        Date d = new Date();  
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");  
        String csCurrentDate = sdf.format(d);  
        System.out.println(csCurrentDate);  
          
    
    }  
}  